﻿@model IEnumerable<KCMS.BusinessLogic.Models.MenuItem>
@{
    ViewBag.Title = "Пункт меню - Index";
}
<h2>
    Index</h2>
<p>
    @Html.ActionLink("Create New", "Create")
</p>
@Html.DropDownList("menu-list", null, new { @id = "drop-down-list-filter" })
<script type="text/javascript">
    $(document).ready(function (){
        $("#drop-down-list-filter").live("change",function(){
            Filtr($(this),'@Url.Action("GetByMenu", "MenuItem")'+'?menuId=','#menu-item-list');
        });
    });
</script>
</p>
@{Html.RenderPartial("_MenuItemList", Model);}
